const role = require('../models/role')
const operateObj = require('./utils')

let obj = {
	addData: (body, res) => {
		operateObj.add(role, body, res)
	},
	getPage: (body, res) => {
		operateObj.page(role, body, res, ['name'])
	},
	getList: (body, res) => {
		operateObj.list(role, body, res)
	},
	getInfo: (body, res) => {
		operateObj.info(role, body, res)
	},
	updateData: (body, res) => {
		operateObj.update(role, body, res)
	},
	deleteData: (body, res) => {
		operateObj.del(role, body, res)
	}
}

module.exports = obj
